package yto.freemarker.springaop.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dongxing
 **/
@RestController
public class UserController {

    @GetMapping("/index.do")
    public String index() {
        return "你好！";
    }

    @GetMapping("/getMap.do")
    public Map<String,Object> getMap() {
        Map<String, Object> map = new HashMap<>();
        map.put("你好", 1);
        return map;
    }
}
